﻿namespace GoodAdmin.System;

public interface IDictDataService
{
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Add(DictDataAddInput input);
    /// <summary>
    /// 更新
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Update(DictDataUpdateInput input);
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Delete(BaseIdInput input);
    /// <summary>
    /// 根据字典类型获取字典数据
    /// </summary>
    /// <param name="DictTypeId"></param>
    /// <returns></returns>
    Task<List<SysDictData>> GetDictDataList(long DictTypeId);
    /// <summary>
    /// 根据字典类型名称获取字典数据
    /// </summary>
    /// <param name="DictType"></param>
    /// <returns></returns>
    Task<List<SysDictData>> GetDictDataList(string DictType);
    /// <summary>
    /// 获取所有字典列表
    /// </summary>
    /// <returns></returns>
    Task<List<SysDictData>> GetDictDataList();

    /// <summary>
    /// 分页查询
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<SqlSugarPagedList<SysDictData>> GetDictDataPageList(DictDataPageInput input);
}
